var express = require("express");
var router = express.Router();

/* GET home page. */
/* 发布文章 */
router.post("/", function (req, res, next) {
  console.log(req.body);
  console.log(req.auth);
});

/* 根据用户id获取文章 */
router.get("/users/:uid", function (req, res, next) {
  console.log(req.params);
});

/* 根据文章id获取文章详情 */
router.get("/:aid", function (req, res, next) {
  console.log(req.params);
});

/* 根据文章id删除文章 */
router.delete("/:aid", function (req, res, next) {
  console.log(req.params);
});

/* 根据文章id编辑文章 */
router.patch("/:aid", function (req, res, next) {
  console.log(req.params);
  console.log(req.body);
});

module.exports = router;
